<?php
/**
 * ModelMapper for administration resource
 *
 * @category   Application
 * @package    Application_Administrator
 * @subpackage ModelMapper
 *
 * @version  $Id$
 */

class Administrator_Model_ResourceMapper extends Core_Mapper_Abstract
{
    /**
     * Database adapter
     *
     * @var Zend_Db_Adapter
     */
    protected $_dbName = 'Administrator_Model_DbTable_Resource';

    /**
     * Get resources from base
     * And
     * @param Administrator_Model_Resource $resource
     * @return Zend_Db_Table_Rowset
     */
    public function getResources(Administrator_Model_Resource $resource)
    {
        $table = $this->getDbTable();
        return $table->fetchAll();
    }

}

